import BuffUtil from '@/BuffUtil';
import UnitSpellEvent from '@/event/UnitSpellEvent';
export default class Item_撒旦之邪力 {
    static id = 'AIvl';
    static 名称: string = '撒旦之邪力';
    static 描述: string = '攻击和法术吸血增加150%';
    static 图标: string = 'assets\\item\\Spell_Warlock_CallDreadstalkers.blp';
    static buffId: string = 'buff_item_sadan';
    static buffType: AppBuffType = {
        id: 'buff_item_sadan',
        name: Item_撒旦之邪力.名称,
        ubertip: Item_撒旦之邪力.描述,
        art: Item_撒旦之邪力.图标,
        dur: 6,
        attribute: {
            法术吸血: 1.5,
            物理吸血: 1.5,
        },
        targetArt: 'Abilities\\Spells\\Other\\Doom\\DoomTarget.mdl',
        targetAttach: 'origin',
    };
    static 添加技能(目标: unit) {
        UnitAddAbility(目标, Item_撒旦之邪力.id);
    }
    static 释放(x: number, y: number, 来源?: unit, 目标?: unit, d?: any) {
        BuffUtil.clearUnitBuffs(来源, true);
        BuffUtil.addBuff(来源, Item_撒旦之邪力.buffId, 来源);
    }
    constructor() {
        BuffUtil.registerBuffType(Item_撒旦之邪力.buffType);
        se.onUnitSpellEffect(Item_撒旦之邪力.spellEffect, Item_撒旦之邪力.id);
    }
    static spellEffect(this: void, d: UnitSpellEvent) {
        Item_撒旦之邪力.释放(d.spellTargetX, d.spellTargetY, d.trigUnit, d.spellTargetUnit, d);
    }
}
